package com.jrx.anytxn.transaction.dto.payment;

import com.jrx.anytxn.transaction.dto.common.CommonAddReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 账单还款请求实体
 * @author  jing.xy
 * date  2019/10/23
 **/
@ApiModel(value = "账单还款请求实体", description = "账单还款请求实体")
public class BillPayReq  extends CommonAddReq {
    /**
     * 卡号
     */
    @ApiModelProperty(value = "卡号")
    @Size(max=32, message = "卡号不能超过32位")
    private String cardNumber;

    /**
     * 还款金额
     */
    @ApiModelProperty(value = "还款金额",required = true)
    @NotNull(message="还款金额不可为空")
    @DecimalMin(value="0",message = "还款金额必需大于0")
    private BigDecimal paymentAmount;

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

}
